//创建多个Promise
const p1 = new Promise((resolve,reject)=>{
    setTimeout(()=>{
        resolve(111111)
    },3000)
})

const p2 = new Promise((resolve,reject)=>{
    setTimeout(()=>{
        reject(222222)
    },3000)
})

const p3 = new Promise((resolve,reject)=>{
    setTimeout(()=>{
        resolve(333333)
    },3000)
})

Promise.allSettled([p1,p2,p3,"aaaa"]).then(res=>{
    console.log("res:",res)
})